package com.example.demoes.repository;

import com.example.demoes.entity.OmsOrder;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 搜索商品ES操作类
 * @author rosszhang
 */
@Repository
public interface EsOrderRepository extends ElasticsearchRepository<OmsOrder, Long> {

    List<OmsOrder> findByMemberUsername(String memberUsername);

}
